package org.jeecg.modules.purchase.entity;

import java.io.Serializable;
import java.io.UnsupportedEncodingException;
import java.util.Date;
import java.math.BigDecimal;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.jeecg.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * @Description: 物品
 * @Author: jeecg-boot
 * @Date:   2022-11-14
 * @Version: V1.0
 */
@Data
@TableName("purchase_goods")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="purchase_goods对象", description="物品")
public class PurchaseGoods implements Serializable {
    private static final long serialVersionUID = 1L;

	/**ID*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "ID")
    private String id;
	/**物品编码*/
	@Excel(name = "物品编码", width = 15)
    @ApiModelProperty(value = "物品编码")
    private String code;
	/**物品分类*/
	@Excel(name = "物品分类", width = 15, dicCode = "purchase_goods_type")
	@Dict(dicCode = "purchase_goods_type")
    @ApiModelProperty(value = "物品分类")
    private String goodsTypeCode;
	/**物品名称*/
	@Excel(name = "物品名称", width = 15)
    @ApiModelProperty(value = "物品名称")
    private String goodsName;
    /**单位*/
    @Excel(name = "单位", width = 15, dicCode = "purchase_unit")
    @Dict(dicCode = "purchase_unit")
    @ApiModelProperty(value = "单位")
    private String unit;
	/**品牌*/
	@Excel(name = "品牌", width = 15)
    @ApiModelProperty(value = "品牌")
    private String brand;
	/**规格/尺寸/型号*/
	@Excel(name = "规格/尺寸/型号", width = 15)
    @ApiModelProperty(value = "规格/尺寸/型号")
    private String size;
	/**单价*/
	@Excel(name = "成本价", width = 15)
    @ApiModelProperty(value = "成本价")
    private Double unitPrice;
    /**单价*/
    @Excel(name = "售价", width = 15)
    @ApiModelProperty(value = "售价")
    private Double sellingPrice;
	/**物品附件*/
//	@Excel(name = "物品附件", width = 15)
    @ApiModelProperty(value = "物品附件")
    private String attachment;
    /**备注*/
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String remark;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    @TableField(fill=FieldFill.INSERT)
    private String createBy;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建时间")
    @TableField(fill=FieldFill.INSERT)
    private Date createTime;
	/**最后修改人*/
    @ApiModelProperty(value = "最后修改人")
    @TableField(fill=FieldFill.UPDATE)
    private String updateBy;
	/**最后修改时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "最后修改时间")
    @TableField(fill=FieldFill.UPDATE)
    private Date updateTime;
	/**逻辑删除 */
    @TableLogic
//	@Excel(name = "逻辑删除 ", width = 15)
    @ApiModelProperty(value = "逻辑删除 0:未删除  1:删除")
    private Integer delFlag;
	/**当前登录用户部门编号*/
    @ApiModelProperty(value = "当前登录用户部门编号")
    private String sysOrgCode;
	/**租户id*/
//	@Excel(name = "租户id", width = 15)
    @ApiModelProperty(value = "租户id")
    private String tenantId;
}
